//
//  VideoDetailCollectionViewCell.m
//  SYiDaiy
//
//  Created by dllo on 16/9/15.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "VideoDetailCollectionViewCell.h"
#import "TAMacro.h"

@implementation VideoDetailCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _sourceLabel= [UILabel new];
        _sourceLabel.font = [UIFont systemFontOfSize:17];
        _sourceLabel.alpha = 0.4;
        [self.contentView addSubview:_sourceLabel];
        _titleLabel = [UILabel new];
        _titleLabel.font = [UIFont systemFontOfSize:16];
        _titleLabel.numberOfLines = 0;
        [self.contentView addSubview:_titleLabel];
        _authorLabel = [UILabel new];
        _authorLabel.font = [UIFont systemFontOfSize:15];
        _authorLabel.alpha = 0.4;
        [self.contentView addSubview:_authorLabel];
        _pubdateLabel = [UILabel new];
        _pubdateLabel.font = [UIFont systemFontOfSize:15];
        _pubdateLabel.alpha = 0.4;
        [self.contentView addSubview:_pubdateLabel];
        _fineLine = [[UIView alloc] init];
        _fineLine.backgroundColor = [UIColor blackColor];
        _fineLine.alpha = 0.3;
        [self.contentView addSubview:_fineLine];
        _contentLabel = [UILabel new];
        _contentLabel.font = [UIFont systemFontOfSize:14];
        _contentLabel.numberOfLines = 0;
        [self addSubview:_contentLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    
    
    
    _sourceLabel.frame = CGRectMake(10, 210, SCREEN_WIDTH - 10, 20);
    _titleLabel.frame = CGRectMake(10, 230, SCREEN_WIDTH - 60, 60);
    _authorLabel.frame = CGRectMake(10, 290, 180, 20);
    _pubdateLabel.frame = CGRectMake(220, 290, SCREEN_WIDTH - 20, 20);
    _fineLine.frame = CGRectMake(10, 320, SCREEN_WIDTH - 20, 1);
    _contentLabel.frame = CGRectMake(10, 330, SCREEN_WIDTH - 20, 300);
}

- (void)awakeFromNib {
    // Initialization code
}

@end
